<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>注册-第二步</title>
	<link rel="stylesheet" type="text/css" href="css/register_two.css" />
	<link rel="stylesheet" type="text/css" href="图标图标/iconfont.css" />
</head>

<body>
	<header>
		<div class="lef">
			<img src="images/wd-login-logo-01.png">
		</div>
		<div class="rig">
			<span class="username">1111</span>
			<span id="quit"><a href="weidian_login.html">退出</a></span>
		</div>
	</header>
	<section>
		<div class="main">
			<div class="top">
				<div class="top-con">
					<!-- 1 -->
					<div>
						<div class="t one op">
							<div class="line no1 hid"></div>
							<div class="circle"></div>
							<div class="line no2"></div>

							<div class="no4"></div>
						</div>
						<div class="b small">1.注册账号</div>
					</div>
					<!-- 2 -->
					<div class="two ">
						<div class="t">
							<div class="line no1 op"></div>
							<div class="circle"></div>
							<div class="line no2"></div>
							<div class="no3"></div>
							<div class="no4"></div>
						</div>
						<div class="b">2.选择店铺类型</div>
					</div>
					<!-- 3 -->
					<div class="hide three">
						<div class="t">
							<div class="line no1 gray"></div>
							<div class="circle gray"></div>
							<div class="line no2 gray"></div>
							<div class="no4"></div>
						</div>
						<div class="b ">3.填写相关信息</div>
					</div>
					<!-- 4 -->
					<div class="hide four">
						<div class="t">
							<div class="line no1 gray"></div>
							<div class="circle gray white">√</div>
							<div class="line no2 gray"></div>
							<!-- <div class="no4"></div> -->
						</div>
						<div class="b">4.选择主体类型</div>
					</div>
					<!-- ---------上完------------ -->
				</div>
			</div>
			<!-- -------------下始----------- -->
			<div class="bottom">
				<div class="blef">
					<p class="p1">单店版</p>
					<p class="p2">适用单个店铺商家</p>
					<p class="p3">单个线上网店，可一站式管理店铺装修、商品、订单、营销推广、会员、收入等数据</p>
					<div class="kai"><a href="weidian_register_three.html">开单店</a></div>
				</div>
				<div class="brig">
					<p class="p1">连锁版</p>
					<p class="p2">适用于多网店管理的连锁商家</p>
					<p class="p3">
						<span class="p4">总部统一管理，网店自主经营；</span>
						<span class="p5">支持直营、加盟、联营等店铺类型；</span>
						<span class="p6">商品智能结算、会员智能营销、直播等核心产品功能 <a
								href="https://vmspub.weidian.com/gaia/39139/34816a1a.html">连锁版介绍</a></span>
					</p>
					<div class="kai">开连锁店</div>
				</div>
			</div>
		</div>
	</section>
	<script src="js/jquery-3.2.1.min.js"></script>
	<script src="js/ajaxTools.js"></script>
	<script src="js/cookieTools.js"></script>
	<script>
		console.log($(".username")[0].innerHTML = document.cookie.split("=")[1])
		$(".kai").click(function () {
			if(true){
				ajax2013useobjandpromise({
					url: "php/login.php",
					method: "post",
					params: `username=${$("#username").val()}`
				}).then(function (data) {
					console.log(data)
					if (data == "0") {
						console.log(data)
						$(".username").html(${})
					}
					else {
						console.log(data)
						$("#msg3").html("登录成功!请<a href='weidian_dianpu.html'>前往商城</a>").css({
							"display": "block",
							"color": "blue"
						})
						document.cookie = `username=${$("#username").val()}`
					}
				})
			}
			else {
				ajax2013useobjandpromise({
					url: "php/login.php",
					method: "post",
					params: `username=${$("#username").val()}&userpass=${$("#userpass").val()}`
				}).then(function (data) {
					console.log(data)
					if (data == "0") {
						console.log(data)
						$("#msg3").html("登录失败!").css({
							"display": "block",
							"color": "red"
						})
					}
					else {
						console.log(data)
						$("#msg3").html("登录成功!请<a href='weidian_dianpu.html'>前往商城</a>").css({
							"display": "block",
							"color": "blue"
						})
						document.cookie = `username=${$("#username").val()}`
					}
				})
			}
		})
	</script>
</body>

</html>